﻿<!-- Copyright ©2007-2008, Technische Universitaet Muenchen
   ====================================================================================================
  
   Last Changed by       $Author: then $
   Last Changed Date     $LastChangedDate: 2009-03-19 13:58:26 +0100 (Thu, 19 Mar 2009) $
   Last Changed Revision $Rev: 42 $
  
   ====================================================================================================
-->

<CollabXT:ToolProviderConfigPage x:Class="Tum.CollabXT.TextGen.TextConfigPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:CollabXT="clr-namespace:Tum.CollabXT;assembly=Tum.CollabXT"
    xmlns:res="clr-namespace:Tum.CollabXT.TextGen.Resources"
    xmlns:vtb="clr-namespace:Tum.CollabXT.TextGen"
    Title="TextGen" Margin="10" Width="389.09">
    
    <CollabXT:ToolProviderConfigPage.Resources>
        <ResourceDictionary>

            <HierarchicalDataTemplate 
        x:Key="CheckBoxItemTemplate"
        ItemsSource="{Binding Children, Mode=OneTime}"
        >
                <StackPanel Orientation="Horizontal">
                    <CheckBox
                    Focusable="False" 
                    IsChecked="{Binding IsChecked}" 
                    VerticalAlignment="Center"
                    />
                    <ContentPresenter 
            Content="{Binding Name, Mode=OneTime}" 
            Margin="2,0"
            />
                </StackPanel>
            </HierarchicalDataTemplate>
        </ResourceDictionary>
    </CollabXT:ToolProviderConfigPage.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="28" />
            <RowDefinition Height="28" />
            <RowDefinition Height="10" />
            <RowDefinition Height="28" />
            <RowDefinition Height="10" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="130" />
            <ColumnDefinition Width="140*" />
            <ColumnDefinition Width="73.21" />
        </Grid.ColumnDefinitions>

        <TextBlock Grid.ColumnSpan="3" Grid.Row="0" FontWeight="Bold" Text="{x:Static res:Language.ConfigPage_ProvideData}" TextWrapping="Wrap"/>
        
        <Label Grid.Row="1" Grid.Column="0" Name="labelProjectName" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_ProjectName}" />
        <TextBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Margin="0,3,0,3" Name="textBoxProjectName" Text="{x:Static res:Language.ConfigPage_DefaultProjectName}" />

        <Label Grid.Row="4" Grid.Column="0" Name="labelOutputPath" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_OutputPath}" />
        <Label Height="28" Margin="0,0,5,0" Name="labelOutputPathValue" VerticalAlignment="Center" Grid.Row="4" Grid.Column="1" Foreground="Red"/>
        <Button Grid.Column="2" Margin="0,3.02" Grid.Row="4" Name="buttonSetOutputPath" Content="{x:Static res:Language.ConfigPage_Set}" Click="buttonSetOutputPath_Click" HorizontalAlignment="Right" Width="64" />
        <Label Margin="6,0" Name="labelTemplatePathValue" Grid.Row="4" Foreground="Red" Grid.Column="1" />
    </Grid>
</CollabXT:ToolProviderConfigPage>
